package com.example.designpatterns.builder;

/**
 * 具体建造者类
 * 实现建造者接口，构建具体产品
 */
public class ConcreteBuilder implements Builder {
    private Product product = new Product();
    
    @Override
    public void buildPartA() {
        product.addPart("部件A");
    }
    
    @Override
    public void buildPartB() {
        product.addPart("部件B");
    }
    
    @Override
    public void buildPartC() {
        product.addPart("部件C");
    }
    
    @Override
    public Product getResult() {
        return product;
    }
} 